查询及更新K12离线刷脸用户信息
刷脸用户信息查询接口
请求参数 | 类型 | 描述 |
---|---|---|
organization_id | string | 机构ID |
out_user_id | string | 商户刷脸用户ID |
php
$instance->v3->offlinefacemch->organizations->_organization_id_->users->outUserId->_out_user_id_->getAsync([
'organization_id' => '',
'out_user_id' => '',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/offlinefacemch/organizations/{organization_id}/users/out-user-id/{out_user_id}')->getAsync([
'organization_id' => '',
'out_user_id' => '',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/offlinefacemch/organizations/{organization_id}/users/out-user-id/{out_user_id}']->getAsync([
'organization_id' => '',
'out_user_id' => '',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->offlinefacemch->organizations->_organization_id_->users->outUserId->_out_user_id_->get([
'organization_id' => '',
'out_user_id' => '',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/offlinefacemch/organizations/{organization_id}/users/out-user-id/{out_user_id}')->get([
'organization_id' => '',
'out_user_id' => '',
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/offlinefacemch/organizations/{organization_id}/users/out-user-id/{out_user_id}']->get([
'organization_id' => '',
'out_user_id' => '',
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
use_id | string | 刷脸用户ID |
out_user_id | string | 商户刷脸用户ID |
organization_id | string | 机构ID |
user_name | string | 姓名 |
user_type | string | 用户类型STUDENT | STUFF 枚举值之一 |
student_info | object | 学生信息 |
class_name | string | 班级名 |
staff_info | object | 职工信息 |
occupation | string | 职业 |
status | string | 用户状态NORMAL | DISABLED 枚举值之一 |
contract_state | string | 签约状态NOT_CONTRACTED | TERMINATED | CONTRACTED 枚举值之一 |
face_image_ok | boolean | 人脸图片上传状态 |
contract_id | string | 签约ID |
参阅 官方文档
刷脸用户信息修改接口
若修改了学生姓名、班级、手机号时,需调用接口同步给微信侧,否则可能导致小助手上记录欠款的学生姓名、班级与实际不符合以及学生刷脸验证手机号时无法通过。
请求参数 | 类型 | 描述 |
---|---|---|
organization_id | string | 机构ID |
out_user_id | string | 商户刷脸用户ID |
json | object | 声明请求的JSON 数据结构 |
user_name | string | 姓名 |
user_type | string | 用户类型STUDENT | STUFF 枚举值之一 |
student_info | object | 学生信息 |
class_name | string | 班级名 |
staff_info | object | 职工信息 |
occupation | string | 职业 |
status | string | 状态NORMAL | DISABLED 枚举值之一 |
phone | string | 手机号 |
headers | object | 声明请求的头参数 |
Wechatpay-Serial | string | 平台公钥ID/平台公钥证书序列号 |
php
$instance->v3->offlinefacemch->organizations->_organization_id_->users->outUserId->_out_user_id_->patchAsync([
'organization_id' => '',
'out_user_id' => '',
'json' => [
'user_name' => '',
'user_type' => 'STUDENT',
'student_info' => [
'class_name' => '',
],
'staff_info' => [
'occupation' => '',
],
'status' => 'NORMAL',
'phone' => '',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance->chain('v3/offlinefacemch/organizations/{organization_id}/users/out-user-id/{out_user_id}')->patchAsync([
'organization_id' => '',
'out_user_id' => '',
'json' => [
'user_name' => '',
'user_type' => 'STUDENT',
'student_info' => [
'class_name' => '',
],
'staff_info' => [
'occupation' => '',
],
'status' => 'NORMAL',
'phone' => '',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance['v3/offlinefacemch/organizations/{organization_id}/users/out-user-id/{out_user_id}']->patchAsync([
'organization_id' => '',
'out_user_id' => '',
'json' => [
'user_name' => '',
'user_type' => 'STUDENT',
'student_info' => [
'class_name' => '',
],
'staff_info' => [
'occupation' => '',
],
'status' => 'NORMAL',
'phone' => '',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$response = $instance->v3->offlinefacemch->organizations->_organization_id_->users->outUserId->_out_user_id_->patch([
'organization_id' => '',
'out_user_id' => '',
'json' => [
'user_name' => '',
'user_type' => 'STUDENT',
'student_info' => [
'class_name' => '',
],
'staff_info' => [
'occupation' => '',
],
'status' => 'NORMAL',
'phone' => '',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance->chain('v3/offlinefacemch/organizations/{organization_id}/users/out-user-id/{out_user_id}')->patch([
'organization_id' => '',
'out_user_id' => '',
'json' => [
'user_name' => '',
'user_type' => 'STUDENT',
'student_info' => [
'class_name' => '',
],
'staff_info' => [
'occupation' => '',
],
'status' => 'NORMAL',
'phone' => '',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance['v3/offlinefacemch/organizations/{organization_id}/users/out-user-id/{out_user_id}']->patch([
'organization_id' => '',
'out_user_id' => '',
'json' => [
'user_name' => '',
'user_type' => 'STUDENT',
'student_info' => [
'class_name' => '',
],
'staff_info' => [
'occupation' => '',
],
'status' => 'NORMAL',
'phone' => '',
],
'headers' => [
'Wechatpay-Serial' => 'PUB_KEY_ID_0114232134912410000000000000',
],
]);
print_r($response->getStatusCode() === 204);
返回字典 | 类型 | 描述 |
---|---|---|
空字符串(无返回内容) |
参阅 官方文档